package gui.dataTypes;

/**
 *
 * @author Marcin Kamionowski
 */
public class SharedFile {

    private String filename;
    private String path;
    private static final int filenameId = 0;
    private static final int pathId = 1;

    public SharedFile(String filename, String path) {
        this.filename = filename;
        this.path = path;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public static int getFilenameId() {
        return filenameId;
    }

    public static int getPathId() {
        return pathId;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof SharedFile) {
            SharedFile tmp = (SharedFile) obj;
            if (tmp.getFilename().equals(this.filename) && tmp.getPath().equals(this.path)) {
                return true;
            }
        }
        return false;

    }
}
